<fieldset id="menufieldSet"><legend class="main" onClick="switchshow();"
	style="cursor: pointer">Options Avancées</legend>
<div id="menu">
<table class="principale">
	<tr class="list">
		<td class="listing" width="100%">Changement du temps de référence</td>
		<form action="./setTime.php" method="post" name="form2">
			<td class="listing" ><input type="text" name="login" size="10"></td>
			<td class="listing" ><input type="password" name="password" size="10"></td>
			<td class="listing" ><input name="submitlog" type="submit" value="Set Time"></td>
			<td style="background-color: #999999; cursor: help;" title="login= set, password= time">Password?</td>
		</form>
	</tr>
	<tr class="list">
		<td class="listing" width="100%">Reset de la base de donnée de la course</td>
		<form action="./resetDB.php" method="post" name="form2">
			<td class="listing" ><input type="text" name="login" size="10"></td>
			<td class="listing" ><input type="password" name="password" size="10"></td>
			<td class="listing" ><input name="submitlog" type="submit" value="Reset"></td>
			<td style="background-color: #999999; cursor: help;" title="login= reset, password= database">Password?</td>
		</form>
	</tr>
	<tr class="list">
		<td class="listing" width="100%">Configuration des distances</td>
		<form action="./setDistances.php" method="post" name="form4">
			<input name="small" type="hidden" value="5"> <input name="big" type="hidden" value="10">
			<td class="listing" ><input type="text" name="login" size="10"></td>
			<td class="listing" ><input type="password" name="password" size="10"></td>
			<td class="listing" ><input name="submitlog" type="submit" value="Set Distances" /></td>
			<td style="background-color: #999999; cursor: help;" title="login= set, password= distance">Password?</td>
		</form>
	</tr>
	<tr class="list">
		<td class="listing" width="100%">Admin Mode</td>
		<form action="./admin/verifLogin.php" method="post" name="form3">
			<td class="listing" ><input type="text" name="login" size="10"></td>
			<td class="listing" ><input type="password" name="password" size="10"></td>
			<td class="listing" ><input name="submitlog" type="submit" value="switch to admin mode"></td>
			<td style="background-color: #999999; cursor: help;" title="login= runnerz, password= runnerz">Password?</td>
		</form>
	</tr>
</table>
</div>
</fieldset>
<script>
	function isMenuOpen(){
		return document.getElementById('menu').style.display=="block";
	}
	
	function closeMenu(){
		document.getElementById('menu').style.display='none';
		
	}
	function openMenu(){
		document.getElementById('menu').style.display='block';
		
	}


	function switchshow(){
		if(isMenuOpen()){
			closeMenu();
		}else{
			openMenu()
		}
	}
	

closeMenu();
</script>
